#include <iostream>
using namespace std;

class point  
{  
public:  
	static int number;  
public:  
	point()  
	{  
		number++;  
		cout<<"construct"<<endl;
	}  
	~point()  
	{  
		number--;  
		cout<<"destruct"<<endl;
	}  
};  

int point::number = 0;  
//void main()  
//{  
//	point *ptr;  
//	point A , B;  
//	{  
//		point *ptr_point = new point[3];  
//		ptr = ptr_point;  
//	}  
//	point c;  
//	delete []ptr;  
//	cout<<point::number<<endl;  
//}  